package com.lianxian.xindong.home.di.component;

import dagger.BindsInstance;
import dagger.Component;

import com.hxb.library.di.component.AppComponent;

import com.lianxian.xindong.home.di.module.HomeModule;
import com.lianxian.xindong.home.mvp.contract.HomeContract;

import com.hxb.library.di.scope.FragmentScope;
import com.lianxian.xindong.home.mvp.ui.fragment.HomeFragment;


/**
 * @作者：hexingbo
 * @时间：06/30/2023
 * @描述：
 */
@FragmentScope
@Component(modules = HomeModule.class, dependencies = AppComponent.class)
public interface HomeComponent {
    void inject(HomeFragment fragment);

    @Component.Builder
    interface Builder {
        @BindsInstance
        HomeComponent.Builder view(HomeContract.View view);

        HomeComponent.Builder appComponent(AppComponent appComponent);

        HomeComponent build();
    }
}